﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wallpaper.Models.DTOs.Requests.Wallpaper
{
    public class SearchRequest
    {
        /// <summary>
        /// 页码（从1开始）
        /// </summary>
        [Range(1, int.MaxValue)]
        public int Page { get; set; } = 1;

        /// <summary>
        /// 每页数量
        /// </summary>
        [Range(1, 100)]
        public int PageSize { get; set; } = 10;

        /// <summary>
        /// 搜索关键词
        /// </summary>
        public string? KeyWord { get; set; }

        public string? CategoryId { get; set; }
    }
}
